import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import httpRequest from './common/request.js'

import { Image as VanImage, Lazyload } from 'vant'
import { NavBar, List } from 'vant'
import { Tabs, Tab } from 'vant'
import { Tabbar, TabbarItem, Search, Swipe, SwipeItem } from 'vant'
import { Icon } from 'vant';
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(VanImage);
Vue.use(NavBar);
Vue.use(List);
Vue.use(Tabs)
Vue.use(Tab);
Vue.use(Lazyload);

// 事件总线[目前用于targetWindow]
Vue.prototype.$EventBus = new Vue();

Vue.use(Icon)


Vue.config.productionTip = false


Vue.prototype.$request = httpRequest

window.app=new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

